package com.web.productservice.entity;

/**
 * 分页的实体类
 */
public class PageVO {

    //当前页
    private long current;
    //每页大小
    private long pageSize;
    //数据总数
    private long total;
    //数据集合
    private Object data;

    public PageVO(long current, long pageSize, long total, Object data) {
        this.current = current;
        this.pageSize = pageSize;
        this.total = total;
        this.data = data;
    }

    public PageVO() {
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
